package StackQueque;

import java.util.LinkedList;
import java.util.Queue;

public class Myque {
    public static void main(String[] args) {
        Queue<Integer> que1 = new LinkedList<>();
        //入队
        que1.offer(1);
        que1.offer(2);
        que1.offer(3);
        que1.offer(4);

        //出队
        que1.poll();

        //判断队列是否为空
        System.out.println(que1.isEmpty());

        //获取队头元素
        System.out.println(que1.peek());

    }
}
